<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">

    <title>提现申请记录</title>

    <link href="__PUBLIC__/AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css"/>
    <link href="__PUBLIC__/AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css"/>

    <link href="__PUBLIC__/basic/css/demo.css" rel="stylesheet" type="text/css"/>

    <link rel="stylesheet" href="__PUBLIC__/css/index.css">
    <!--必要样式-->
    <style>
        body {
            font-family: "Microsoft Yahei", 微软雅黑, arial, "Lantinghei SC";
            background: #fff;
        }

        .account {
            padding-top: 5px;

            overflow: auto;
        }
        .order-title .am-u-sm-12 {
            padding: 6px 6px;
            border-bottom: 1px solid #F2F2F2;
        }

        .order-title .am-u-sm-12 span {
            font-size: 18px;
            color: #000;
            vertical-align: middle;
            display: inline-block;
            line-height: 25px;
            margin-left: 8px;
        }
    </style>
</head>

<body>
<!--<div class="am-g bg-white order-title">-->
    <!--<div class="am-u-sm-12">-->
        <!--<a href="__APP__/Home/Me/index"><img src="__PUBLIC__/new_images/left.png" width="28" alt=""></a> <span>提现申请记录</span>-->
    <!--</div>-->
<!--</div>-->
<div class="am-g " id="logList">


</div>
<script type="text/javascript" src="__PUBLIC__/AmazeUI-2.4.2/assets/js/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/AmazeUI-2.4.2/assets/js/amazeui.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/layer/layer.js"></script>
<script type="text/javascript">
    var page=1; //当前页的页码
    var allpage =1; //总页码，会从后台获取
    function scrollFn(){
        allpage = $('#totalpage').val();
        //真实内容的高度
        var pageHeight = Math.max(document.body.scrollHeight,document.body.offsetHeight);
        //视窗的高度
        var viewportHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight || 0;
        //隐藏的高度
        var scrollHeight = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
        if(pageHeight - viewportHeight - scrollHeight <20){  //如果满足触发条件，执行
            if(page <= allpage) {
                gotoPage();
            }
        }
    }
    $(window).bind("scroll",scrollFn);  //绑定滚动事件
    $(document).ready(function(){
        gotoPage();

    });

    // ajax 抓取页面
    function gotoPage(){
        cur_page = page; //当前页面 保存为全局变量
        $.ajax({
            type : "POST",
            url:"__APP__/Home/Me/ajaxWithdrawalsLog",
            data : {pagenum:page},// 你的formid
            success: function(data){
//                $("#logList").html('');
                $("#logList").append(data);
                if(page == 1){
                    var count = $('#totalrecord').val();
                    if(count == '0'){
                        layer.msg('您还没有任何提现记录！');
                    }
                }
                page++;

            }
        });
    }
</script>
</body>
</html>